package com.work.crops.service;

import com.github.pagehelper.PageInfo;
import com.work.crops.pojo.CropsInfo;
import com.work.crops.pojo.CropsInfoIndex;
import com.work.crops.pojo.CropsParam;
import com.work.entity.Result;

import java.util.List;

public interface CropsInfoService {

    /**
     * @Author alin
     * @Date 20:19 2020/10/11
     *
    **/
    List<CropsInfo> findAll();

    CropsInfo findById(Integer id);

    /**
     * @Author alin
     * @Date 14:08 2020/10/12 
     * 分页条件查询
    *
     * @return*/
    PageInfo findByPage(Integer page, Integer size, CropsParam cropsParam);

     /**
      * @Author alin
      * @Date 18:11 2020/10/12
      * 添加农作物信息
     **/
     Result addCropsInfo(CropsInfo cropsInfo, CropsInfoIndex[] cropsInfoIndex);

    Result deleteById(String id);

    Result updateCropsInfoById(CropsInfo cropsInfo);
}
